

clear

*cd "/Users/benlyons/Dropbox/Affirmation/JEPS final/"
**set path**

*******************************
***Farhart et al***************

use "Farhart.dta"

**table output
sum con_index7 lib_index6 Republican if aff_lib_farhart ==1
sum con_index7 lib_index6 Republican if aff_lib_farhart ==0

use "Farhart_demos.dta"

sum Age female if selfaff ==1
sum Age female if selfaff ==0
tab q136_alt if selfaff ==1
tab q136_alt if selfaff ==0

*******************************
***Kotcher*********************
clear
use "Kotcher.dta"

**table output
sum dv_scale   if condition1_kotch==1
sum dv_scale  if condition1_kotch==0

use "Kotcher_demos.dta"
gen female = Q32
recode female 2=1 1=0 
gen condition1=condition 
recode condition1 4=. 3=. 1=0 2=1

sum female if condition1 ==1
sum female if condition1 ==0
tab Q33  if condition1 ==1
tab Q33  if condition1 ==0
tab Q34  if condition1 ==1
tab Q34  if condition1 ==0

**********************************
***Levendusky*********************
clear
use "Levendusky.dta"
gen female = PPGENDER
recode female 2=1 1=0

**table output
sum affect_merged discuss_polar outparty_danger social_distance PPAGE female party_st if affirm_levdistance==1
sum affect_merged discuss_polar outparty_danger social_distance PPAGE female party_st if affirm_levdistance==0
tab PPEDUCAT if affirm_levdistance==1
tab PPEDUCAT if affirm_levdistance==0


**********************************
***Lyons**************************
clear
use "LyonsStudy1.dta"
gen female = sex
recode female 2=1 1=0

sum Zparty_aligned_belief Strength2lvl age female if condition1_lyons1  ==1
sum Zparty_aligned_belief Strength2lvl age female  if condition1_lyons1  ==0
tab edu if condition1_lyons1  ==1
tab edu if condition1_lyons1  ==0

clear
use "LyonsStudy2.dta"
gen female = sex
recode female 2=1 1=0

sum Zparty_aligned_ben_minus_risk female age party_st if affirm_lyons2==1
sum Zparty_aligned_ben_minus_risk female age party_st if affirm_lyons2==0
tab edu if affirm_lyons2==1
tab edu if affirm_lyons2==0

**********************************
**Nyhan and Reifler***************

**Study 1
clear
use "CCES_full.dta"

sum numinsurg  iraqwithdraw female if selfaffirmation==1
sum numinsurg  iraqwithdraw female if selfaffirmation==0
tab v247 if selfaffirmation==1
tab v247 if selfaffirmation==0
tab educ if selfaffirmation==1
tab educ if selfaffirmation==0

**Study 2

use "mturk_full.dta"

sum jobs5 econimport disapprove female if aff==1
sum jobs5 econimport disapprove female if aff==0
tab age if aff==1
tab age if aff==0
tab educ if aff==1
tab educ if aff==0

**Study 3

use "qualtrics_full.dta"

sum tempchange gwarm strong female if affirmation_gw==1
sum tempchange gwarm strong female if affirmation_gw==0
tab q2 if affirmation_gw==1
tab q2 if affirmation_gw==0
tab Q54 if affirmation_gw==1
tab Q54 if affirmation_gw==0

************************************
***Rami and Hall*********************

use "RaimiHall.dta"
gen female = gender
recode female 1=0 2=1 4=0 

sum BS_immigration sqIM_Bel age female party_st if condition1_raimi_bs==1
sum BS_immigration sqIM_Bel age female party_st if condition1_raimi_bs==0
tab edu if condition1_raimi_bs==1
tab edu if condition1_raimi_bs==0


*******************************
***Skytte*********************
clear
use "Skytte.dta"
gen female = Q_1
recode female 1=0 2=1 3=0
gen age = Q_2 + 17

sum  FT_diff_avg Although_Im_A Less_inf party_st age female if T1_Affir_Af_1_Unaf_0_dist2==1
sum  FT_diff_avg Although_Im_A Less_inf party_st age female if T1_Affir_Af_1_Unaf_0_dist2==0

*******************************
***Zhao*********************
clear
use "Zhao.dta"
gen female = q0027 
recode female 2=1 1=0
gen age = q0028_0001
 
sum dvs_combined repub female age if affirm_z ==1
sum dvs_combined repub female age if affirm_z ==0
tab q0031 if affirm_z ==1
tab q0031 if affirm_z ==0












